PocketbaseClient

class PocketbaseClient(baseUrl: <Error class: unknown class>.() -> Unit, lang: String = "en-US", store: BaseAuthStore = BaseAuthStore(null))

A multiplatform Kotlin SDK for Pocketbase

Parameters

baseUrl

the URL of the Pocketbase server

lang

the language of the Pocketbase server

store

the authentication store used to store Pocketbase authentication data

Constructors

Link copied to clipboard
constructor(baseUrl: <Error class: unknown class>.() -> Unit, lang: String = "en-US", store: BaseAuthStore = BaseAuthStore(null))

Properties

Link copied to clipboard
Link copied to clipboard

The API for Pocketbase backups

Link copied to clipboard
val baseUrl: <Error class: unknown class>.() -> Unit
Link copied to clipboard

The API for Pocketbase batch

Link copied to clipboard

The API for Pocketbase collections

Link copied to clipboard

The API for Pocketbase crons

Link copied to clipboard

The API for Pocketbase files

Link copied to clipboard

The API for Pocketbase health

Link copied to clipboard
val httpClient: <Error class: unknown class>

The Ktor HttpClient used to connect to the Pocketbase API.

Link copied to clipboard
Link copied to clipboard

The API for Pocketbase logs

Link copied to clipboard

The API for Pocketbase realtime

Link copied to clipboard

The API for Pocketbase records

Link copied to clipboard

The API for Pocketbase settings

Functions

Link copied to clipboard
inline fun PocketbaseClient.login(initialToken: String? = null, setup: TokenLoginBuilder.() -> Unit = {})

Logs into the Pocketbase client with the specified token. This is required before making any API requests that require authentication.

Link copied to clipboard

Clears the current auth token from the auth store.